<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>运行时配置</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="trader.installation.html">« 安装</a></li>
      <li style="float: right;"><a href="trader.constants.html">预定义常量 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="trader.setup.html">安装/配置</a></li>
    <li>运行时配置</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="trader.configuration" class="section">
 <h2 class="title">运行时配置</h2>
 <p class="simpara">
这些函数的行为受 <var class="filename">php.ini</var> 中的设置影响。
</p>
 <p class="para">
  <table class="doctable table">
   <caption><strong>Trader 配置选项</strong></caption>
   
    <thead>
     <tr>
      <th>名字</th>
      <th>默认</th>
      <th>可修改范围</th>
      <th>更新日志</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="trader.configuration.html#ini.trader.real-precision" class="link">trader.real_precision</a></td>
      <td>3</td>
      <td>PHP_INI_ALL</td>
      <td>Since trader 0.2.1</td>
     </tr>

     <tr>
      <td><a href="trader.configuration.html#ini.trader.real-round-mode" class="link">trader.real_round_mode</a></td>
      <td>HALF_DOWN</td>
      <td>PHP_INI_ALL</td>
      <td>Since trader 0.3.0</td>
     </tr>

    </tbody>
   
  </table>

 </p>

 <p class="para">这是配置指令的简短说明。</p>

 <p class="para">
  <dl>
   
     <dt id="ini.trader.real-precision">
      <code class="parameter">trader.real_precision</code>
      <span class="type">int</span>
     </dt>

     <dd>

      <p class="para">
      All the values in the returned arrays will be rounded to this precision.
      However the calculations inside TA-Lib happen with unrounded values.
      </p>
     </dd>

    
    
      <dt id="ini.trader.real-round-mode">
       <code class="parameter">trader.real_round_mode</code>
       <span class="type">string</span>
      </dt>

      <dd>

       <p class="para">
        Controls the trader real rounding policy. Valid values are <code class="literal">HALF_UP</code>,
        <code class="literal">HALF_DOWN</code>, <code class="literal">HALF_EVEN</code> and <code class="literal">HALF_ODD</code>. The behaviour is identical to the <a href="function.round.html" class="link">round()</a> function used with the mode argument.
       </p>
      </dd>

     
  </dl>

 </p>
</div></div></div></body></html>